CarGurus Interview Question

A simple OOPS-based question with testing