Complexity ? Concurrency issue ? Any cache needed ?
Anonym
my solution was O(n). it has a concurrency concern needed to be tackle, just be careful ;) For the design interview depending on how fast you go to anwser question, scalability issue might come on the table, in that case thinkabout using a redis