Fisdom interview question

DSA Arrays and logical reasoning