My code is failing for a bad input

image

I think the input is wrong. My submissions is in Ruby. Can somebody confirm it please?

Comments (1)