LeetCode: Remove Element

Approach 1