Wolters Kluwer interview question

Write a program for one string logic?