Pergunta de entrevista da empresa Arm

given a code that does smth. Please find the mistakes