Well, if d=distance fallen and f=force of impact, that would give you f=mg/d ... which means that the impact force decreases with height. Does this make sense?
If you mean f(d) is some function of distance having something to do with total work... then it is too vague: be specific.
Try working the ideas through to some conclusion before asking about them. For eg.
The total work done by gravity pulling the egg a distance h without resistance is ##W=F_gd_{fall}=mgh##
The force of falling is mg (gravity) we know that: but what is the force of impact?
Usually an object hitting the ground does not entirely stop falling - a rigid object, for eg, will make a small hole in the ground. In which case we can take an approximation by making ##d##=depth of the hole then ##F_{impact}=mgh/d## is just conservation of energy. The deeper the hole the slower the deceleration on impact, the lower the force of impact.
Knowing the depth of the hole is basically the same as knowing the time-frame for the impact.
The approximations here are that all the impact energy went into making the hole and the force of the impact was constant over the time of the impact.
Your egg generally does not make a hole in hard surfaces.
What it does is flex (deform) like a ball. If it flexes too much it breaks. If it does not break, then the unflex creates the bounce.
So you still need to know the time-frame of the impact or some information about the flexibility of an egg.
That is sort-of doable incidentally... you could model the egg as a spring and measure the spring constant the usual way.
However, if your homework problem is about designing a safe egg-drop then your best bet is to over-engineer the thing.
The problem with asking us is that we are aware of many more issues that you are likely to be expected to take into account.