Santander Interview Question

Most difficult challenge