Scotiabank interview question

Provide how you problem solve with an example