Vichitr's submission of Problem 19 | CodeChef