Pergunta de entrevista da empresa Turing

Algorthmic problem and time complexity problem