Continental interview question

Logic gates, various types and functions