What was the main purpose of one of the first world organizations, the League of Nations?

What was the main purpose of one of the first world organizations, the League of Nations?

a. to serve as a court of justice
b. to try war criminals to provide aid
c. to war victims and countries ravaged by war
d. to prevent another global war by resolving conflicts with diplomacy