Which data structure to use

which data structures should i use to store the outputs, sort them and print only unique ones?