Barclays Interview Question

Write an algorithm to help calculate maximum number of applications excecuted successfully by the system