in reply to Regarding pattern Matching

Why should the output be AUDI and McLAREN when the input is Audi and McLaren?

Why should FORD be removed from the list?

Also, you can help us to provide better answers by showing us the code you have already written for this task. Please also tell us what it does and where it fails to do what you need.