Hiya interview question

1) Hacker rank coding challenge: Array Hopper