how to remove NZEC error does'nt have any exception..pls help

Hello guys i m new here and i did a solution of lucky array in medium section in java but I am getting NZEC error.The code runs fine IN MY PC but it gives error when I upload it. Here is the link: …pls someone help me…i m new here and dont know what to do :frowning: :frowning:
sorry for my bad english :frowning: