Optum interview question

java strings, oops,patterns.