Input: Head: basket<sep>Tail: buying
Answer: Yes