YASH Technologies interview question

basic python