Tavant Interview Question

String, Matrix, Greedy, Search and Sorting