• + 3 comments

    Even N => 0 Odd N => XOR of elements at position 0,2,4,..... Easiest Solution.