The problem is given below
# chipignite
a
The problem is given below