Parat spoj problem

None of the test cases pass
kindly help.

i have modified your cooked function
now it is passing all testcases

Modified code