issue 36 test case
issue 36, solve python test case
issue 36, javascript part