apple pie's submission of A or B | CodeChef