Accenture interview question

Q: Questions are based on array, string and sometimes dp also come