Bank of America Interview Question

Some logical programming questions