Pergunta de entrevista da empresa Netskope

two algorithms to resolve, related to data structures