Pregunta de entrevista de athenahealth

A coding question with some algorithm Basic OOD question