Add solution of JOSEPHUS problem