Twilio interview question

Q: leetcode easy Array-based coding challenge