BAE Systems USA Interview Question

Agile, algorithm to predict when a door will close