Need some more TC

https://onlinegdb.com/SJrrZDE7I my code is giving correct output for all the give TC in the question but it is not being accepted, could you give me some more Test cases so that I can get right logic

@debyian
you can try now it is working