Create 3671_dining_cows_O(n)