Given a non-empty array where every element appears twice except for one, find that single element.
You must implement a solution with time and space (excluding input).
Example: For [4,1,2,1,2], return .
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Given a non-empty array where every element appears twice except for one, find that single element.
You must implement a solution with time and space (excluding input).
Example: For [4,1,2,1,2], return .