Please look into bug

I did same as shown in editorial but didn’t used function as u haven’t teached and this was showing that test case not passed please look into this sir, i want 100 points for it

@chiragjcj1 share your code here using cb ide

@chiragjcj1 one small mistake declare p=1 outside the while loop


corrected