Quantiphi Interview Question

They gave me a code in Python and asked me to write its output.