Find the longest word which can be formed from other words - V1.0 - Python