GovTech interview question

Arrays, and basic Data structure and algo