Pergunta de entrevista da empresa Amazon

meeting rooms1, 2, longest substrings without repeating charcaters