DXC Technology interview question

Related to data structures Oops concepts