Alphabet's Google has fired an employee who wrote an internal memo that ascribed gender inequality in the technology industry to biological differences.