Ford Motor Company interview question

Typical Hacker Rank data structure and algorithm