← Back to Difficulty Selection
Code Review (Easy): The Organization Audit
Story
Lena recently built a nested folder system to organize the team's internal documentation by priority level. During a code review, Eva noticed that some folders were out of sequence, making it hard to find specific notes. Lena now needs to write a check to ensure that every item tucked inside the left side of a folder is smaller than the folder itself, and everything on the right is strictly larger. For example, if a main folder labeled '5' has a nested section on its right side that contains a '4', her script should flag the entire structure as invalid.
Your Task
Read the story and code, then decide if the code is ready for production or needs improvement.
Hints
What would block an approval? Give me a hint.
Next
Check out Next Topic: Flexible Log Filtering