Goldman Sachs Interview Question

Newton's method