Encode and Decode Strings - Medium Python Arrays & Hashing Interview Problem | Unnested