Longest Substring Without Repeating Characters

http://leetcode.com/onlinejudge#question_3
Need to update both the window (pat) and the hash

Passed all