HARMAN interview question

python programming