JPMorganChase interview question

write program to do n to n mapping.