Cognizant interview question

Write Web driver script to maximise and close multiple windows