Erfan Alimohammadi's submission of Riled | CodeChef