Test case - 1 failed

Sir, My test case 1 has failed in the Birthday Paradox problem and i am unable to find my mistake.

Can you please point out the mistake in my code.

Sir, now the test case 1 has passed successfully…actually i was making mistake in corner test case