Wells Fargo interview question

Tech questions. I wrote some queries