Microsoft Interview Question

how to implement built-in functions, Algorithms