Pergunta de entrevista da empresa Twilio

- Time complexity of the coding solution? - What would take to make it thread-safe?