Sponsored
Use these hints if you're stuck. Try solving on your own first.
Firstly, try to find all the words present in the string.
On the basis of each word's lengths, simulate the process explained in Problem.
Solve with full IDE support and test cases