BNY interview question

Questions were all from "Hackerrank"