Duplicate Word Checker
- Code a procedure called wordChecker that:
- Accepts a string parameter
- Remove instances of words that are repeated more than once (must be in sequence)
- Returns the result with duplicates removed
Assumptions:
- All words are in lower case
Examples:
1. goodbye bye bye world world world -> goodbye bye world
2. sam went went to to to his business to work -> sam went to his business to work
3. in inthe -> in inthe