Pergunta de entrevista da empresa Turing

2 math questions, which is right, which is wrong and why