Arm Interview Question

(It's a very interesting design exercise.)