American Express interview question

Numerical Analysis Question