Vitaliy's submission of Sum of distances | CodeChef