JFrog interview question

Write a function that gets dir folder and match string and print all string matches