Photon interview question

Basics of java