Adnovum Interview Question

Write an array algorithm