Every sensor reading in the array `vals` appears exactly twice, except for one reading that appears once. Return that single reading. Use O(1) extra space.