Not getting flaw in my code

please find flaw in my code–https://ide.codingblocks.com/s/256315

Try this test : abcdee
your code fails to remove duplicates for last repeating character.


refer this