Accenture Interview Question

1 basic algoritm question which you find in leet code. Some question about commit policy