Find A String Hackerrank Solution In Python