Bloomberg interview question

3 sum Design AutoComplete search feature LC Medium - A problem Graph and Tree