苹果店面

一年经验
One coding question:
given int array, find first non-repeating number
[1, 1, 1] => null
[1, 2, 3, 1, 2] => 3
[1, 2, 4, 3, 2, 1] => 4

Follow up make it generic function