I\'m solving a question on Leetcode and thought my code works perfectly well when I run it and also gives the correct answers for multiple test cases, the Leetcode checker d