1 使用一个list存储number,使用dictionary存储index
2 remove的时候,得到需remove的val的index,然后把最后一个元素放在这里,之后再pop掉最后一个元素就行