Question d’entretien chez Meta

some questions regarding heap, time complexity, space complexity