who was the president when the white house burned down

For how many days was the US White House in British possession, why was there a war between the two countries?

The White House, besides being the residence of the American President, is also a symbol…