Maximum length prefix

Problem Name:
Maximum length prefix
Site:HackerEarth
Links:
Tags: