InterviewBit Problems   Falling Dominoes : Solved