Samarth Bhargava's submission of Equalize | CodeChef