← Back to Difficulty Selection

Code Review (Easy): Finding the Symmetry

Story

Lena was working on a small helper for the internal dashboard to help the team spot patterns in long system IDs. Mark suggested that finding the longest sequence that reads the same backward as forward would help them identify specific batches of hardware-generated codes. For example, if a log contains the sequence 'racecar-data', the utility should identify 'racecar' as the primary segment. Lena wants to ensure this works perfectly before she hands the code over to Eva for a final look.

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: Cleaning Up Breadcrumbs

Cookies help us track your progress - nothing extra.