Tell me about a time you debugged a coding problem, and walk me through how you approached it.
Describe a clear, step-by-step debugging process for a failing Python function. Your answer should explain how you reproduce the issue, isolate the root cause, validate the fix, and prevent regressions.
def debug_problem(nums, target):
def debug_problem(nums, target):