“working fine for nearly all values” That by definition is not a correct answer then , For example if the answer to be printed is '4 6’and any output in the format ‘4 6’ or ‘4\n6’ will be judged correct but output in the format ‘46’ will be judged wrong as simple as that
Great to see a higher secondary student working hard to get the second question AC…All the best kid…Hope you will achieve as what you have said in your motto…