Hi
I am getting wrong answer in this question.
Here is my code: https://ide.codingblocks.com/s/615093
I also submitted the same code on leetcode and got success there.
this is the link for leetcode problem: https://leetcode.com/problems/number-of-provinces/
Please help in finding the issue.