Snap interview question

Solving squareroot from first principles