Manish Pathak's submission of Friend | CodeChef