ITC interview question

PLC ladder logic etc.