The election of Gotabaya Rajapaksa as the new president of Sri Lanka provides New Delhi with both an opportunity and a challenge.