Meta Interview Question

I was asked 1 coding question, it was array based