Pearson interview question

Easy but lengthy interview