Grant Street Group Interview Question

SQL, dynamic programming with array, string processing