Piyush Kumar's submission of Problem 4 | CodeChef