Anonymous interview question

Mostly they ask Array and String based problems.