← Back to Difficulty Selection
Code Review (Easy): Adjusting Deployment Sequences
Story
Lena noticed that some of our deployment sequences were displaying a specific set of middle steps in the wrong order, making it hard for developers to track progress. Mark decided to build a quick helper for the internal dashboard that identifies a specific range of tasks within a sequence and flips their order while leaving the rest of the list untouched. Eva reviewed the plan and emphasized that this needs to work smoothly even if the team is only correcting a tiny section in the middle. For example, if a five-step process shows tasks [1, 2, 3, 4, 5] but the second through fourth steps are backwards, the utility should transform the list into [1, 4, 3, 2, 5].
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: Batch Reorder Update