Wells Fargo interview question

Java OOPS