Task using List, Stack and Queue