OPTIML interview question

Coding challenge: substring search and complexity