A test application to simulate Qualification of a team in group stages of any tournament. This algorithm holds true for most of the sports!