Thoughtworks Interview Question

algos for different mathematical problems.