McKesson Interview Question

Suggest a solution to this problem which involves predicting when a machine part is going to run out in inventory