JS check has a bug


#1

There seems to be a bug with the JS solution checker. I wrote the same piece of code both in JavaScript and Java and while Java passes, the JS solution fails time complexity check.