IBM interview question

how switches are work?