CarWale interview question

Data structure used in the project and why.