Lambda Function With For Loop