J.P. Morgan interview question

difference between an array from a heap