Candy using O(1) memory but not a/c