Foundation Robotics Labs is calibrating a packing station with packages and available storage spaces. Each package has a size, and a package fits in a space when the package size is less than or equal to the space size. Each package and each space can be used at most once.
Given integer arrays packages and spaces, return the maximum number of packages that can be placed.
Implement fit_packages(packages, spaces):
packages, a list of positive integers, and spaces, a list of positive integers.def fit_packages(packages, spaces):