Finished Quora Challenege problem: Typeahead Search