Pergunta de entrevista da empresa Dynamic Digital Technology

Given a string, seperate the string on based on the string 'and'. Example : "He is a boy and he studies in class 10". the code should output :"He is a boy" "He studies in school".(handle the corner cases)