df has an integer column 'A'. Filter out rows that contain the same integer as the row immediately above. Return the filtered DataFrame.
df
'A'
Sample data: df:
A 0 1 1 2 2 2 3 3 4 4 5 5 ... (11 rows total)
solve(...)