Hey Abhishek, you can use sendKeys() method send some data to a Prompt Alert Box in Selenium Webdriver. sendKeys() method takes String as an input and is mostly used to send keyboard inputs in Selenium Webdriver. Checkout the following command to send data to alert box:
driver.switchTo().alert().sendKeys("Dummy_text");