Pregunta de entrevista de Wealthfront

very basic java coding qns.