Given integer X, determine if 2 elements of array have X as sum.

Checking in O(N), O(N) [Time, Space] solution. (Using STL maps)