Ford Motor Company interview question

Write the code in the list comprehension method