apple pie's submission of Possible GCD | CodeChef