Why is this approach failing?
This solution fails the second testcase and I don't understand why since the logic that I have used here seems to be fine. Any help would be appreciated.
Interview with Adamant | Working at Google and OCPC to favorite animes