CARVANA interview question

Was simple code to test DI and how good u are in design patterns