Dell Technologies Interview Question

Explain the algorithm on the table