Poorly specified


Yeah, the only spec here is the pathological test cases which you will fail one by one, so the only way to figure out the spec is to keep submitting and keep failing! Unfortunately, software development in the real world is also sometimes done by iterative guesswork, so get used to it! But if you find yourself in a situation where they force you to keep guessing and keep rejecting your guess, start looking for a better position.