Giving wrong answer

My code is wright but it is giving me wrong answer

@imrsachin
print each element in a new line.It’ll pass all the test cases
System.out.println(arr[i]);

Please mark your doubt as resolved and rate as well :slight_smile: