Implement Python Function for Longest Unique Substring Length | Amazon Interview Question