return false if x or y are not present in the input string OR last occurrence of x is after the first occurrence of y in the input string
if last == - 1 or first == - 1 or last > first : NEW_LINE INDENT return False NEW_LINE DEDENT