Shilpa, congratulations!
your problem is easily fixed by adding the page number to the pdf name:
app.activeDocument.exportFile(ExportFormat.pdfType, File("/Users/xxxx/Desktop/Local/untitled folder/" + pdf_name+"_"+p.toString()+ ".pdf"), false);
as much as possible, avoid using the break statement (unless you are using it in a "switch" statement).