IBM interview question

Simple coding questions on Java/Node