Return distinct values from a list including duplicates
Given {1, 2, 6, 6, 6, 10, 14, 14} ; Return -> {1, 2, 6, 10, 14}
Understand:
- is the input always sorted for us?
- are inputs always only integers?
- Given {1, 1, 1} ; Return {1}
- Given {1, 2, 3} ; Return {1, 2, 3}
- Given {15, 6, 10, 5, 12, 6} ; Return {15, 6, 10, 5, 12}