Hi @SatheeskannaK
Thank you for your reply.
Your approach worked for First Name / Last name as the data has a 1:1 relationship. Every customer has only one First name and only one Last name.
It does not work when the data has a one to many relationship, like in case of arrays.