Pharos Solutions interview question

Q: 2 Problems, concentrate about array.