3B - Bear and Special Dfs

Problem Name:
3B - Bear and Special Dfs
Site:HackerEarth
Links:
Tags:
Problem setters: