IBM interview question

given linked list, remove the odd indices elements/node