Wells Fargo interview question

Core Java indepth question in details