Is result an integer?


how to type the result ? ?? Is it an integer or a character?


Yes. Solution is the count of perfect squares less than N. (In this case 100).

Point to Note: Only perfect Squares has odd number of factors. rest have even number of factors.

Why odd Number: Only if Odd number of monkeys pass, the door will be left open.