How would you find the number repeated twice and the missing number in an array where values are in range 1 to n?
Implement find_duplicate_missing(nums). The input contains n integers, where each value should appear once from 1 through n, except one value appears twice and another is absent. Return [repeated, missing].
def find_duplicate_missing(nums):