3/12/24 @LeetCode POTD 
2 approaches 
1) built the string while keeping track of spaces
2) reserve the string length and keep track of spaces and original string
TC- O(n) SC-O(1) not considering the ans string
#DSA #LeetCode #CodingJourney #Practice #consistency
#DSA #LeetCode #CodingJourney #Practice #consistency