athenahealth Interview Question

A coding question with some algorithm Basic OOD question