Same purchase order under different document no

Hello everyone,
In this sheet. We have to get multiple Purchase Orders from the same transaction - Document under different document No. Which means same purchase order under different document no.
Input and output tables given below.

Input Table
Document No Purchase order
01 123
02 456
03 123
01 123
02 456
01 123

Output Table
Document No Purchase order
03 123