Netflix Interview Question

They asked me a coding question that was mainly manipulating data and traversing an array in an unconventional manner.