chandan's submission of So hard | CodeChef