The compounds $\ce{H2NCH2CH2NH2}$ and $\ce{HOOCCH2COOH}$ react to form a polymer. What is the structure of the repeating unit of the polymer?
A. $\require{enclose}\ce{\enclose{horizontalstrike}{(}HNCH2CONHCH2CH2NHCO\enclose{horizontalstrike}{)}}$
B. $\ce{\enclose{horizontalstrike}{(}HNCH2CH2NHCOCH2CO\enclose{horizontalstrike}{)}}$
C. $\ce{\enclose{horizontalstrike}{(}OCCH2CONHCH2NHCO\enclose{horizontalstrike}{)}}$
D. $\ce{\enclose{horizontalstrike}{(}HNCH2CH2NHCOCH2NH\enclose{horizontalstrike}{)}}$
I came across this question which requires me to find the structure of the repeating unit of the polymer made by the reaction of two different compounds. However, I am not sure as to which repeating unit would suffice for this particular polymer.
As far as I know, there should be double bonds present at the ends of the repeating unit, so that the pi bond can break and allow the formation of additional bonds, and hence, a chain of molecules. However, using that line of thought I cannot seem to figure out the answer to the question.
I just need a direction, a hint or a clue as to how I should approach problems like such.