Sri Lanka is an island country located southeast of the Republic of India and northeast of the Maldives. According to the International Monetary Fund, Sri Lanka's GDP in terms of purchasing power parity is second only to the Maldives in the South Asian region in terms of per capita income.
The Maldives boasts a higher GDP in terms of purchasing power parity than Sri Lanka, according to the International Monetary Fund 
The context states that, according to the International Monetary Fund, Sri Lanka's GDP in terms of purchasing power parity, is second to the Maldives, so that means the Maldives would have the higher amount. The system was probably confused because it does not understand that Sri Lanka being second in that regard means the Maldives would be better.  