Oodle interview question

Q3. Pattern question.