InterviewBit Problems   Number of islands II : Solved