As a developer at an automated warehouse, you need to implement a smart package sorting system that categorizes packages based on their dimensions and weight.
A package is considered bulky if either:
A package is considered heavy if:
For a package with dimensions 100×100×100 cm and mass 15 kg:
Implement the sort method in the PackageSorter class that takes:
And returns the appropriate category as a string: "STANDARD", "SPECIAL", or "REJECTED".
Volume: 125,000 cm³ (not bulky), Mass: 15 kg (not heavy) → STANDARD
Volume: 1,000,000 cm³ (bulky), Mass: 15 kg (not heavy) → SPECIAL
One dimension ≥ 150 cm (bulky), Mass: 15 kg (not heavy) → SPECIAL
Volume: 125,000 cm³ (not bulky), Mass: 20 kg (heavy) → SPECIAL
Dimensions ≥ 150 cm (bulky) AND Mass: 20 kg (heavy) → REJECTED