Meta Interview Question

Solve problem with one side chained array