Quantiphi Interview Question

Some random question based on data structures