Infosys Interview Question

Write code to Take Screenshot in Selenium ?