Pergunta de entrevista da empresa TechTree IT Systems

Time complexity and space complexity of a given array manipulation problem