Dinesh Goyal's submission of Variation | CodeChef