Sort Clothing Sizes

Problem: Sort Clothing Sizes

You are given a string sizes, where each character represents a clothing size. The valid sizes are:

  • 'S': Small
  • 'M': Medium
  • 'L': Large

Implement a funct...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: