Prashant Mahesh's submission of Winning Ways 2 | CodeChef