write a c++ code
as soon as possible
Q. Write a program that takes n number of elements as input an
save them in MIN HEAP. After that find out the total
number of nodes that are:
• Leave nodes
• Nodes with only child
• Nodes with both left and right child