Given a positive integer , return true if is a perfect square. A perfect square is an integer that equals for some integer .
For example, is a perfect square because . But is not.
This problem combines algebra and binary search. Think about what equation you're solving.