Nagarro Interview Question

Q. Taking sub string out of string Q. Operations performed on matrix Q. Sorting array in such a manner that all zeros are on right side