Pragiti interview question

Based on previous work