A solution to Addepar's Ant Coding Challenge