Microsoft interview question

Does this string exist in another string.

Interview Answer

Anonymous

Nov 7, 2022

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