Himanshu Jaju's submission of Problem4 | CodeChef