CarGurus interview question

How to avoid dead lock