My output is correct...but showing wrong because sequence is not correct...how do i generate correct sequence

@samadsid7 here abdul I am referencing your last doubt thread when you will make compare function only change is that in sign of equality . I can help with the approach if you are allowing me to do that

yes help me…provide me the correct code

@samadsid7 here is it correct_implementation code