apple pie's submission of Special Triplets | CodeChef