Domanda di colloquio di IBM iX

Some basic Java OO related question and a simple algorithm question