2. Count Words with 'ea'
Define a value-returning function countWords(anyList) that counts and returns how
many strings of a list of strings, given as parameter, contain a substring 'ea'.
Use a simple for loop for the list traversal.
Test your function 2 times. For each test, what is the expected value of the function?
Write your answer in a comment just above the respective function call.
Challenges:
a) Count words with substrings 'ea', each letter capitalized or not.
b) Add a second parameter to your function that allows to specify any substring.