Himanshu Jaju's submission of Problem 5 | CodeChef