Quantiphi interview question

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