Amazon Interview Question

follow up union find algorithm