AT Tech interview question

Oop question they asked me