Persistent Systems Interview Question

1. Sorting a matrix 2. Printing duplicate words in a sentence.