GoDB Tech interview question

About memory management