How to perform 'Union' in Scala.
// Task: Union
// Language: Scala
def union() {
// Implementation for Union
val result = ...; // Initialize variable
// TODO: Implement core logic here
// Step 1: Prepare data
// Step 2: Process Union
println("Done");
}