think-cell Interview Question

Solve a task using C++ standard library.