Create a method to merge two arrays and remove duplicates.
EasyProblem Statement
Create a method to merge two arrays and remove duplicates.
Sample Input
Array1: [1, 2, 3], Array2: [2, 3, 4]
Sample Output
[1, 2, 3, 4]
Limits
Time: 2s · Memory: 256 MB