Pergunta de entrevista da empresa athenahealth

Nothing unexpected. You are expected to code and test its correctness.