The solution-code I have written for this “straightening multilevel linkedList” question gives correct answer on my local computer
It also gives correct answer when I run “Compile and Test” on codingBlocks.
But when I “Submit Code”, it gives “Run Error” for all test-cases.
For better understanding of my code to others, I have given precise naming to functions and variables; And also used comments wherever necessary,