Description
The method is building a string using lots of concatenation, including in a loop, which will be O(n^2) because a new array will be allocated each time. Would be more efficient to use a StringBuilder for this.
The method is building a string using lots of concatenation, including in a loop, which will be O(n^2) because a new array will be allocated each time. Would be more efficient to use a StringBuilder for this.