RTX interview question

General programming and logic puzzle questions.