BNY interview question

not difficult, very straight forward