leetcode: remove element