https://onlinegdb.com/BkG-qE9VD

plz check and tell for what test case is my code failing and what is the flaw in my logic