Nexient interview question

How do I use Selenium WebDriver with Java to automate a web application?