Pearson interview question

.