Arm interview question

Classic algorithmic questions