A good Array Example

Hackerrank problem: