js-arrays-2-check-it

I think I have understood what lexicographical comparison means but if
someone thinks there is a mistake, feel free to change the solution.