Pregunta de entrevista de TechTree IT Systems

Time complexity and space complexity of a given array manipulation problem