Vichitr's submission of Endgame | CodeChef