IBM Interview Question

to solve a puzzle