Welcome to Pattern Matching/Repeat Approach
Assumptions:
1) Pattern matching is case-sensitive.
2) Input string does not have any trailing or leading white spaces.
3) Empty white space in a string between 2 words is considered a valid character.
Enter Input String:
>