Vichitr's submission of Problem 27 | CodeChef