Amazon Robotics interview question

Implement filter in software