Tanmay Sahay's submission of Riled | CodeChef