Google Interview Question

Data structure and algorithm and some mathematics