Wealthfront interview question

very basic java coding qns.