Pergunta de entrevista da empresa AKUNA CAPITAL

nothing difficult, but be clear when you explained how you did this problem