Weak test cases even leetcode rejects the solution


#1

Weak test cases . My solution got submitted here but leetcode rejected the same solution.