• + 1 comment

    Please check if the check al.get(0)==0 should be replaced by al.get(0)<=0 as while subtracting the value can be less than 0.