Scotiabank interview question

Example explaining difficult concept