Write a function findPerfectSquare
that
takes a number as input and returns
true
if the number is a perfect square.
Otherwise, it should return false
.
A perfect square is a number
that can be expressed as the product
of an integer with itself.
For example,
4 = 2 * 2, 9 = 3 * 3, 100 = 10 * 10
. Here,
4, 9 and 100 are perfect squares.