Microsoft interview question

Does this string exist in another string.

Interview Answer

Anonymous

7 Nov 2022

Talked about my approach first before coding. Then proceeded to code a solution.