Leetcode Union Of Two Arrays Using Python For Front End