## Groovy - Strategy Pattern using Closures

Suppose we have a list of numbers.def numbers = [1, 2, 3, 4, 5, 6, -1] We are asked to do the followingFind out all the even numbers in the listFind out all the numbers divisible by 3Find out all the negative numbers in the listLet's write a function each…