Pregunta de entrevista de CompuGroup Medical

A coding problem and java basic questions