Pregunta de entrevista de Capital One

memory allocation question, no front end required