KLA interview question

C++, OOP, some statistics