GEICO interview question

Design an auto complete, track the length