Pergunta de entrevista da empresa RTX

General programming and logic puzzle questions.