Function Logic Analyzer
Walk through function execution with test examples to pinpoint incorrect behavior and results.
Prompt
This function runs, but it's giving me the wrong result. Can you walk through it with test examples to find where it goes wrong?