Bounce interview question

Coding question based on data structures like disjoint sets, graphs, stacks and queues. Problems based on sorting