If each interior angle of a regular polygon is 135 degrees, what is the name of the polygon?

A. pentagon
B. hexagon
C. heptagon
D. octagon​