Keyence interview question

See above section for answer.