Meta interview question

Solve problem with one side chained array