UBS interview question

Delete kth element from linked list