Volvo Group interview question

A problem statement was given and asked to design a solution using OOPS concepts