Recursive file search

Given a directory and a set of file extensions. Find all files in the given directory and its subdirectory, whose files extension match with one among the given set?

Give a recursive and a non-recursive solution.