Implement sqrt with Newton vs binary search | Uber Interview Question