Hello @yash_mondal,
You can check the same example of ABC here in the playground, it should work, and I don’t see any issue in your code.
Something is wrong that is not present in your provided details.