The second question should be closed as a duplicate.
With the following caveats;
It should only be closed if it's judged by the community, or by a gold tag badge holder in that category to be clearly a duplicate of the other (e.g. where the similarity is distinct and obvious).
A moderator should be immediately flagged to re-open the question if the OP indicates (in comments or in chat) that it's not a duplicate.