Agoda Interview Question

Calculate square root of a double number