Wellhub interview question

There was a live coding using a simple array traversing challenge