Expedia Group interview question

Hackerrank problems on object-oriented programming