I have following code
<body> 
    <script> 
          (function(s) { })
          ("document.write('<script>document.write(\" <script>document.write('<script>document.write(\"Hello World\");<\/script>');<\/script>\");<\/script>')"); 
    </script> 
</body>
Here in function body what code shall I write so that code here to parses and print  Hello World". Here solution must work for n level of document.write() nesting.
To be frank I do not have any idea how to do it .
Can someone please provide me solution 
 
     
     
    