Output is right but Codechef is not accepting it

Here is my Answer for this Question

Think for a = 0

1 Like