Hexagon Interview Question

some logical reasoning question