Seven Bridges Interview Question

Some questions were about data structures