KPMG interview question

Basic question on java development