ValueLabs interview question

How to handle frames & windows