Tesla interview question

heap / stack related questions