Everpure Interview Question

how to implement the set using array.