Scotiabank Interview Question

How you can resolve multiple queries together?