Find the missing number in an array of integers from 1 to N.
Given an array containing N - 1 distinct integers from 1 through N, return the one missing integer. Implement find_missing_number(nums), where nums is a list of integers and the result is an integer.
def find_missing_number(nums):