Find the second largest number in the array.
Treat "second largest" as the second largest distinct value. Return None when the array contains fewer than two distinct values.
Implement def second_largest(nums):, accepting a list of integers and returning an integer or None.
def second_largest(nums):