Controllable points on curve with min and max distance

I’m guessing it’s probably this homework question again…