think-cell Interview Question

C++ and algorithm and complexity