The President of the United States when the United States annexed Hawaii as a territory and when it fought the Spanish-American War was __________.

A: Ulysses S. Grant
B: Grover Cleveland
C: Rutherford B. Hayes
D: William Mckinley