Ask Media Group Interview Question

Split a string based on circular doubly-linked list