What is the problem with my code? Its just giving one test case right ,rest are coming incorrect