Untitled

Objective

Imagine you work in Thoughtful’s robotic automation factory, and your objective is to write a function for one of its robotic arms that will dispatch the packages to the correct stack according to their volume and mass.

Rules

Sort the packages using the following criteria:

You must dispatch the packages in the following stacks:

Implementation

Implement the function sort(width, height, length, mass) (units are centimeters for the dimensions and kilogram for the mass). This function must return a string: the name of the stack where the package should go.

Submission Guidance

  1. Time Management: Allocate no more than 30 minutes to complete this challenge.
  2. Programming Language: You may use any programming language you're comfortable with. This is an opportunity to showcase your skills in a language you are proficient in.
  3. Submission Format:
  4. Evaluation Criteria: Submissions will be assessed on: