Taking a simpler approach.
as we know, n1 = number of leaves = n3 + root + 1 = n3 + 1
=> n1 = n3 + 2
Now
e = n - 1
= n1 + n2 + n3 – 1.
after the process, each of two edges adjacent to a degree 2 node will be replaced by 1. For one node, 1 edge decreases. for n2 nodes, n2 edges decreases.
Therefore, new number of edges = e’ = e – n2
= n1 + n2 + n3 – 1 – n2
= n1 + n3 – 1
= n1 + n1 – 2 – 1
= 2*n1 – 3
Option A