How would you find the second highest number in an array without sorting?
Implement second_highest(nums) to return the second-highest distinct integer. Return None when fewer than two distinct values exist. The input is a non-empty list of integers, and the solution must not sort or mutate the list.
def second_highest(nums):