Amazon Interview Question

The problem was related to machine learning knowledge.