ThoughtFocus interview question

Spiral matrix code, factorial code, string code to print first non repeating char in string