Pergunta de entrevista da empresa Cyware

two DSA coding problems with time complexity reasoning