Thoughtworks interview question

Code to get substring of a string

Thoughtworks Interview Question: Code to get substring of a string | Glassdoor