Pseudocode Output: XOR of 1..N Twice With One Value Skipped

Company: Deloitte USI_5sep

Difficulty: medium

Problem Statement

Question 1

Consider the code given below: ``` N = 1000000 result = 0 FOR i = 1 TO N result = result XOR i END FOR FOR i = 1 TO N IF i != 543210 result = result XOR i END IF END FOR PRINT result ``` What will be printed?