American Express interview question

regression based numerical