Tenerity India interview question

The coding problem was based on strings and could be done in any language.