zscoder's submission of Sum of distances | CodeChef