Question d’entretien chez Google

design algorithm to reverse the content in the memory.