Oracle interview question

debug Python code