Magyar Telekom interview question

Basic stuff from java current