add groovy solution

Added a Groovy solution