Given a String, check if it's present in order in the character list and vice versa.
Input : test_str = 'geeks', K = ['g', 'e', 'e', 'k', 'f', 'o', 'r', 'g', 'e', 'e', 'k', 's'] [ String in Character list ]
Output : True
Explanation : geeks is present in list , starting from 7th index till end.
Input : test_str = 'geeksforgeeks', K = ['g', 'e', 'e', 'k', 's'] [Character list in String]
Output : True
Explanation : ['g', 'e', 'e', 'k', 's'] present in string, starting from the beginning of string.
In this, we convert the character list to a string using join() and apply it in the operator to test for substring presence.
In this, the target character list is converted to String and then checked in String using in operator.