Parity Alternating Sequences - Coding problem | OneNoughtOne