Skip to navigation

Question:
How to iterate through a string and shorten it after each loop

Use simple algorithms as well as simple data structures.