Pergunta de entrevista da empresa CarGurus

Typical ease/medium leetcode type of problem