Karat interview question

some javascript question .. made use of split().