India and China are competing for influence in the Maldives, a tiny country of 1,200 islands scattered in the northern Indian Ocean.