burstLength, repeatedly remove every contiguous group whose size is greater than or equal to burstLength. ≥ burstLength.String arrayBurst(String sequence, int burstLength)
sequence is the input sequence of lowercase English letters.burstLength is the minimum size of a contiguous group that must be removed.≥ burstLength, remove the whole group.1 ≤ sequence.length() ≤ 10^51 ≤ burstLength ≤ 10^5sequence contains only lowercase English letters 'a' to 'z'.burstLength.burstLength = 1, every character is removed, so the result is an empty string.burstLength, return the original sequence unchanged.arrayBurst(sequence = "abcdeeeeeddcbfgfhhht", burstLength = 3) eeeee and hhh are removed.abcdddcbfgft.ddd is checked only in the next step, then removed.abccbfgft.≥ 3 remains."abccbfgft"
arrayBurst(sequence = "abbba", burstLength = 3) bbb is removed in the first step.aa.aa is checked in the next step.aa has size 2, which is less than 3, so it stays."aa"
arrayBurst(sequence = "abcccbba", burstLength = 3) ccc is removed in the first step.abbba.bbb is checked only in the next step, then removed.aa.aa has size 2, which is less than 3, so it stays."aa"
arrayBurst(sequence = "abcd", burstLength = 2) ≥ 2."abcd"
arrayBurst(sequence = "abc", burstLength = 1) 1.""