Amazon Interview Question

Which algorithm would you write to solve a certain mathematical problem?