Union Of Two Arrays Leetcode Problem