Zoosk interview question

Parse strings, order lists.