I guess logic is correct still answer is not coming could u solve the issue

@anantgovil123 in line 9, input a[i] instead of a[n]