Santander interview question

DIagrams