Merge Triplets to Form Target Triplet - Medium Python Greedy Interview Problem | Unnested