InterviewBit Problems   Prisoners and Poison : Solved