In hackerrank,this question is failing 8 out of 15 testcases,can someone please correct this and tell me what is wrong.
Also I want to use random in this question and