Pergunta de entrevista da empresa Questrade

Case study. How would you solve for x?