i and j, to the start of each word array.i is less than the length of the first sentence and j is less than the length of the second sentence, and the words at i and j are equal, increment both i and j.i and j to point to the end of their respective word arrays.i and j are greater than or equal to 0, and the words at i and j are equal, decrement both i and j.i or j is less than 0, return true as the sentences are similar.false.