onsemi interview question

Over all it was wasy