The Code Optimization Round gives you working but slow code, and you must make it fast without changing the output. Mine matched shipments to delivery…