Given two strings 's' and 'part', repeatedly remove the leftmost occurrence of the substring 'part' from 's' until it is no longer present. Return the resulting string 's' after all occurrences have been removed.
Click Run to execute sample tests.