Keyence interview question

Mathematical questions, logical questions