--- title: Josephus problem id: 5a23c84252665b21eecc7ec5 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof josephus=="function","josephus should be a function.");' - text: '' testString: 'assert(typeof josephus(30,3)=="number","josephus(30,3) should return a number.");' - text: '' testString: 'assert.equal(josephus(30,3),29,"josephus(30,3) should return 29.");' - text: '' testString: 'assert.equal(josephus(30,5),3,"josephus(30,5) should return 3.");' - text: '' testString: 'assert.equal(josephus(20,2),9,"josephus(20,2) should return 9.");' - text: '' testString: 'assert.equal(josephus(17,6),2,"josephus(17,6) should return 2.");' - text: '' testString: 'assert.equal(josephus(29,4),2,"josephus(29,4) should return 2.");' ```
## Challenge Seed
```js function josephus (init, kill) { // Good luck! } ```
## Solution
```js // solution required ```