hackerrank solutions the first line of input contains the original string. the next line contains the substring.
By Mandy Kemmer at Dec 01 2020