What this problem is really asking is "Which nitrogen on semicarbazide is more nucleophilic?"
The nitrogens bonded to the carbonyl on semicarbazide all have resonance forms, so their lone pairs aren't as available for nucleophilic attack.
The other nitrogen (on the left) is the most nucleophilic because it isn't involved in any resonance forms, so its lone pair isn't shared with another atoms.