Q10: Run-length encoding of a list.