athenahealth interview question

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