TODO: work on this interview question: find the common longest string