Pergunta de entrevista da empresa VigLink

Suggest a data structure to perform add and remove operation in constant time