Renting a yacht problem c/c++ language development