TAMKO interview question

Draw ladder logic to perform certain operation like toggle switch.