Please read our question guidelines
before submitting your question offer.
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.