Microsoft interview question

how to implement built-in functions, Algorithms