BNY Interview Question

not difficult, very straight forward