NiCE Interview Question

how to take screenshots? why webdriver is used?