Wise interview question

Double linkedlist removing element question