Amazon Interview Question

Leetcode: Longest subsequence without repeating characters.