Qualcomm interview question

Rotate a matrix by 90 degrees and find the duplicate in string array.