Domanda di colloquio di Meta

I was asked 1 coding question, it was array based