Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to build a new string by traversing the given string and reversing whenever you get the character ‘i’.
Solve with full IDE support and test cases