i and j to 0, where i will iterate over str1 and j will iterate over str2.c in str2 using the pointer j.c, find the corresponding character in str1 that is either equal to c or can be incremented to c.str1, increment both i and j.str1 is reached before j reaches the end of str2, return false.str2 are found in str1, return true.