LinkedIn Interview Question

Parse names and reconstruct into string.