Amit Sukhpal's submission of Way Out | CodeChef