Leap & Scale interview question

Basics of Core Java