Remove elem, Search insert pos, valid parentheses