Given a non-negative integer , decide whether there exist two integers and such that .
For example, returns true because . But returns false.
Hint: use two pointers starting at and . Move pointers based on whether is less than, equal to, or greater than .