Innovaccer interview question

Data Structure and Algorithms, OOPS