HTEC Group interview question

lambda function