Design: regex for units w,d,h,m,s. Handle empty, malformed, duplicates? Keep reasonable: allow empty string? Raise ValueError. Allow ordering any order, repeated units sum. Validate nonempty, must have at least one number-unit pair, no leftover chars, no negative. Write module and tests.