Oodle Interview Question

Q3. Pattern question.