Can you implement an efficient toString() function, whose time complecity is O(L), (L is the length of the final string). Direct concatation using '+' has O(L^2) time complexity.