Deskfactors interview question

Coding on string and arrays