Aakash Prakash's submission of Problem 4 | CodeChef