TECH interview question

data structures and oops concepts