Groups with condition on non-permutable subgroups