add solution for remove_duplicates_from_sorted_list