Your code must produce the correct output for all required cases, including edge cases, as demonstrated in the UI examples and tested by the provided unit tests.