Amwell interview question

Life coding, refactor Java class