Sonic Healthcare Interview Question

Two questions related to data structures