FactWise interview question

I was asked an array-based DSA question.