Given an array of integers. Return deduplicated array preserving number orders.
Example: [1, 122, 15, 8, 1, 87, 122, 1] --> [1, 122, 15, 8, 87]
 
Test set 1
Result:
 
Test set 2
Result:
 
Test set 3
Result: