Abhinav Kumar's submission of For the Benefit of All (easy version) | CodeChef