Abhinav Jain's submission of Graph Challenge | CodeChef