Operation-Fill,Stack and Remove Duplicates