Larsen & Toubro interview question

To design logic system