Notes

Here is the algorithm we developed: