Technical Question For Interview In Java