Hello Priya,
seems you want to swap object from one list to another like below.
To do one by one you can do it through loop and to do in one you can use below given approach.