Intel Corporation interview question

How transistor works and design logic circuit base on a problem given ?