10times interview question

Oop principles