Pergunta de entrevista da empresa RBC

Solve these critical thinking and pattern recognition problems.