Array Halves Codechef Java