Dell Technologies Interview Question

remove 1 data from link list in o(1)