Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 605 , 986 ] NEW_LINE n = len ( arr ) NEW_LINE k = 548 NEW_LINE x = 569 NEW_LINE xorOnSortedArray ( arr , n , k , x ) NEW_LINE DEDENT