We have an array filled with half X and other half all unique elements. How do you find X?
Treat X as the only value that appears more than once; the remaining values occur exactly once. Implement find_repeated_half(nums) to return X, with nums as a list of integers and the result as an integer.
def find_repeated_half(nums):