Arm interview question

Basic programing questions not that hard.