Pergunta de entrevista da empresa TCY

Question from probability, trigonometry, Calculus