← Back to Difficulty Selection
Code Review (Easy): The Log Tag Locator
Story
Lena is working on a utility for the internal audit dashboard to help the team find specific clusters of system tags within long log entries. Mark noted that while these tags are always the same length, they can appear in any order depending on which background service triggered the event. The tool needs to scan the logs and pinpoint the starting location of every instance where all the required tags are found grouped tightly together. For instance, if the team is looking for 'log' and 'out' and the log stream contains 'outlogrefreshlogout', the utility should return the positions where 'outlog' and 'logout' begin.
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: The Dashboard Logic Puzzle