Number Of Distinct Islands Gfg