J.P. Morgan Interview Question

difference between an array from a heap