ByteDance Interview Question

remove duplicates from sorted list