Pharos Solutions Interview Question

Q: 2 Problems, concentrate about array.