X626: Count Strings Longer Than and Not null

Complete the function countStrLongerThan() so that it returns the count of Strings in the array names that are longer than minLen. You must check for Strings in the array names that are not null. If an element in names is null, then ignore it.

Examples:

countStrLongerThan({"pedro","maria"},3) -> 2
countStrLongerThan({"juan",null,"maria"},4) -> 1

Your Answer:

Feedback

Your feedback will appear here when you check your answer.