Permutation Game Hackerrank Javascript Certificate