Applied Minds Interview Question

Analyze this piece of Python code