Notes

Here's the algorithm we developed: