Google interview question

They asked to solve a coding problem required knowledge of implementing maths in code