Group in which every maximal subgroup is characteristic