LinkedIn interview question

1. Read Python code and find issues