ANZ Interview Code Exercise