Simple solution in one word


#1

take the last perfect square in given range. If the no. of doors is 625 or greater but less than 676. then answerr should be 25.