Yahoo Interview Question

Puzzles, java question