JPMorganChase Interview Question

write program to do n to n mapping.