For the input [0,0,0,0,0] can anyone suggest me what will be the ouput?


I submitted the code and it is expected and for the input [0,0,0,0,0] it shows me the ouput is 1 which is wrong.


The actual output is 6.
You can always check the output by yourself, just click on the “See expected output” button, which is below the explanation of the test cases and then you just need to follow the instruction.
For this question the input format is
line 1- Size of array.
line 2- Size of array “empty space” input element separated by empty space


When the input is 5 0 0 0 0 0
the expected output is 0


Your input should be
5 0 0 0 0 0