← Back to Difficulty Selection

Code Review (Easy): Flipping Legacy Identifiers

Story

Lena Sato noticed that some legacy log entries needed to be displayed with their ID digits reversed to match a specific formatting style in the new dashboard. She drafted a small utility to flip these numbers while keeping their original positive or negative sign intact. During the code review, Mark Patel suggested that the function should default to zero if the reversed result becomes too large for the system to process normally. As an example, if the tool receives a value like 123, it should cleanly output 321.

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: Adjusting Deployment Sequences

Cookies help us track your progress - nothing extra.