Meta Interview Question

it is a easy find substring string question.