Pergunta de entrevista da empresa Genedata

Q: reverse an array without create a new array. unit tests. what's the time complexity?