Pergunta de entrevista da empresa Amazon

Reconstruct the set data structure with random access.