Brilliant (CA) Interview Question

Some standard data structures and algorithms question