Whole code is working fine but why sum_supply function not return correct value

@dishant_rahangdale because in supply sum n is actually n-1 so put loop from 0 to <=n