Edit live coding question

JavaScript questions (difficulty: easy/hard; duration: 5-20 min)
The text of the question, be clear and specific.
The candidate sees this in the coding box, provide a starting code.
For each test case you want to test, provide one test method. Limits per test case: max memory is 256MB and max time is 3sec on 2GHz CPU.
Provide a solution that passes all test cases, so we can check there is actually solution that satisfies all test cases.
TestDome questions have between three and ten points, try to use the similar scale.
Only labeled values are allowed
  Cancel You hereby assign all rights, title and interest in and to the copyrights to the question to TestDome Ltd for its exclusive use and that TestDome Ltd shall be the sole and exclusive owner of copyright and other intellectual property rights in said answers and solutions.