A naive implementation to check whether there are two elements in an array whose sum is s specified number.

Complexity: O(n2)

This will be optimized.