Accenture Interview Question

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