Pergunta de entrevista da empresa Freshworks

Given a perfect square, find the square root of it. (Just pseudo code)