ByteDance Interview Question

Disjoint set was one of them. It also asked about java garbage collector.