Vichitr's submission of Problem 5 | CodeChef