Input passing but test case failing

given input is passing with correct output but test cases are failing upon submission.

@akshatkaush
hello Akshat,
image
here u need to sort only upto first m strings. because there will be only m valid strings.

m is the variable that u have used in ur code

ok, got it, thank you!!