leetcode practice - python3 (4)

NoSuchKey