Google interview question

Data structure and algorithm and some mathematics