Ad
  • Default User Avatar

    did you see that in the initial code ?

    src is the input string; your solution should write the result into dst and return it

    Do not allocate your own memory, use dst. Make sure to have a look at the initial code before you start programming on Codewars, it often contains useful information. Also ask questions instead of raising issues.

    PS: Make sure to use markdown formatting to paste code so that it is easier to read ;-)