Devdutt Kumar's submission of Way Out | CodeChef