Nagarro interview question

Selenium code to handle multiple windows. And perform task on 2nd window.