Stripe interview question

Manipulate a string to get desired output

Interview Answer

Anonymous

30 May 2024

Converted to array and parsed quickly, took 5 min each on first 2 parts and last part dragged due to interviewer confusing me. Make sure to copy paste your previous solutions into new part.