Cisco interview question

Basic Python code and puzzles