Pregunta de entrevista de athenahealth

The coding exercise had basic probability but I did not expect that.