Karat interview question

There was an array of string and numbers to resort into a different format. Used split function.