Tredence interview question

Basic Array and DSA questions