Marissa Mayer's career at Google began with an accidental click, leading her to become the company's first female engineer.