ANADIGICS interview question

some python question