LinkedIn Interview Question

Simple string manipulation Flatten data structure