IBM Interview Question

It was a game test, for cognitive abilities.