Test cases 6, 7 and 8 not solved

I’m not able to solve the test cases 6, 7, and 8. Please see the code using the link:

this link doesn’t contain any code
plz check the link and send correct one