Topic: Stack Problem / Level: advanced

Problem: Create a stack-based system for solving the "Lexicographically Smallest Equivalent String" problem using union-find.

Run the code to see the output here...