Arista Networks interview question

about garbage collectors in java how to reverse a binary tree leadership based questions