LinkedIn interview question

Parse names and reconstruct into string.