Create two Entities one is PE and another is NPE and associate them many to many association. Create NP entity and add association with PE in microflow. This will give you one input . For multiple inputs repeat the same with while loop.
You have already asked this question multiple times and they have been answered. Please don't create duplicate questions.