IBM Interview Question

Simple coding questions on Java/Node