W3 Engineers interview question

Given two strings, output the common characters.