Inteliment interview question

C++ programming to reverse string, explain krushkal’s algorithm.