Wipro Interview Question

Rat and poison puzzle.