Add accepted solution for remove element.