Problem to solve: Define a Python function remdup(l) that takes a non-empty list of integers l and removes all duplicates in l, keeping only the last occurrence of each number.