Devesh Agarwal's submission of Friends | CodeChef