Jio interview question

Data structures and oops concepts