Aurora Innovation interview question

c++ memory management related question