Software Engineer · Mid-Level · Phone Screen
I was given a list of stores: `["McDonald's", "KFC", "Burger king", "Bites", "Biscuit shop"]`. I needed to implement an `autocomplete` method that takes a string `s` as input and returns a list of stores that start with `s`. For example, `autocomplete("B")` sh...