vishal sharma's submission of Way Out | CodeChef