apple pie's submission of Circular Track | CodeChef