apple pie's submission of Even tuples | CodeChef