apple pie's submission of Finding Shoes | CodeChef