Capital One Interview Question

memory allocation question, no front end required