ljl's submission of Sum of distances | CodeChef