Jimmy's garden problem solution

The repository contains a solution to Jimmy's garden problem as well as tests to verify its correctness.