Pergunta de entrevista da empresa think-cell

Solve a problem in C++ while making sure it will pass all case.