American Express Interview Question

brain teaser, machine learning