DIA Associates interview question

What is wrong in this python code?