Confidential interview question

Basic algorithms, oop concepts were asked