Join the ropes CPP

Why should i build a min heap? and not a max heap?

@Kush_1312
we want min heap, because we want minimum length strings first to join them.
If we joined the longest rope first, it will repeat for every other operations. We want to minimise this repetition cost.