Which of the given figures has the greatest perimeter?
(A) 1 only
(B) 2 only
(C) 3 only
(D) Both 2 and 3