Pergunta de entrevista da empresa J.P. Morgan

difference between an array from a heap