Vanilla Networks interview question

Basic python problem including program also. MCQ