Soumyadeep Roy's submission of Way Out | CodeChef