Glynk interview question

questions on strings and some patterns