Find Common Characters

Easy

📝 Description

Find common characters in two strings

Input Format

Two space-separated strings

Output Format

String of common characters

Constraints

Strings length ≤ 1000

🔍 Sample Input

hello world
world hello
            

✅ Sample Output

h e l o r w d
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run