Bloomberg Interview Question

implement square root