IBM Interview Question

Logical are tough. Try preparing previous year paper