Given a string str, letters of the word "balloon" (7 letters) can be removed in one iteration. Return the number of iterations the (7 letters) can be removed until no such letters forming word "balloon" are present in the final string.
Example:
BALLXXOON -> In 1st iteration , the letters can be removed once, leaving XX, hence only 1