ByteDance Interview Question

Check if a string is a substring of another string.