Test/submit button faulty


#1

test as custom input gives the correct answer, while test and submit show different answers given by my code, ant help regarding the same will be appreciated