Pregunta de entrevista de CarGurus

Typical ease/medium leetcode type of problem