Pergunta de entrevista da empresa Google

How to code a complex equation.