Badrinath Kulkarni's submission of Riled | CodeChef