Frage im Vorstellungsgespräch bei Marvell Technology

Find how much substrings you have in an Input string using python.