Pergunta de entrevista da empresa Trailstone

Math and stats. Easy coding question