Swabhav interview question

2.find substring of the string