Alacriti interview question

opp concept