Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 5 , 7 , 8 , 9 ] NEW_LINE n = len ( arr ) NEW_LINE initialize_xor ( arr , n ) NEW_LINE Q = [ [ 5 , 6 ] , [ 8 , 1 ] ] NEW_LINE for i in range ( len ( Q ) ) : NEW_LINE INDENT find_xor ( Q [ i ] [ 0 ] , Q [ i ] [ 1 ] ) NEW_LINE DEDENT DEDENT