There is no problem to be solved.
Women who want to become software engineers are free to do so. There are no barriers. That women tend to choose other careers is the result of human nature. Like it or not, boys and girls are different, and those differences are immutable.
As for "minorities," the very term is meaningless. Anyone of any color, creed, sex, or religion is (in America at least) free to pursue these careers. Trying to bean count the number of Inuit who are code jockeys is ridiculous and ultimately degrading to those being counted.
Google is being shook down by the race and sex hustlers, nothing more. They company is all too aware that these free classes are not going to change the demographics of software engineers. They're doing this as a PR stunt to fend off the hustlers, who will eventually move on to some other target who is more willing to be shook down.
Men are an extreme minority in the child care services industry. Early childhood development programs at colleges and universities are essentially estrogen clubs. There are no men anywhere. Why? Because human nature is what it is, and the nature of men does not include such things.