KPMG Interview Question

Basic question on java development