Minimal non-nilpotent groups as automorphism groups