Spicejet interview question

Dsa and some basic oops concepts