Keyence interview question

How would you implement these tools