Cisco interview question

Array based question mid level difficulty