The Carrot Problem In Programming