Hopper Interview Question

Some arrays manipulation