Post Transition - Hacker Rank Solution
For print_all_packages you should simply traverse every town, office and package in the correct order.
For send_all_acceptable_packages first you should determine the number of packages in two offices after transaction.