← Back to Difficulty Selection

Code Review (Easy): The Keypad Translator

Story

Lena was tasked with improving the search functionality for the company's internal contact directory to make it more user-friendly. Eva pointed out that many long-time employees still rely on old keypad patterns when trying to remember specific room codes or office extensions. To bridge this gap, Lena is building a small utility that translates a sequence of dialed numbers into every possible combination of letters those buttons could represent. For example, if a user enters the digits "23", the tool should display all possible results like "ad", "ae", and "cf" to help them find the right contact.

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: Simplifying Service Labels

Cookies help us track your progress - nothing extra.