Amdocs interview question

Q: simple string related coding questions were asked during the technical round