Glynk Interview Question

questions on strings and some patterns