Pergunta de entrevista da empresa Apple

How does memory management work in iOS?