How to perform 'Union' in Perl.
# Task: Union
# Language: Perl
sub union() {
# Implementation for Union
my $ result = ...; # Initialize variable
# TODO: Implement core logic here
# Step 1: Prepare data
# Step 2: Process Union
print("Done");
}