Pergunta de entrevista da empresa Open Futures

1.C++ Question 2. Math question 3. Brainteaser