Array Halves Codechef Python Programming