title: Sorting a string using another sorting order string
body: <p>I saw this in an interview question , 
  Given a sorting order string, you are asked to sort the input string based on the given sorting order string.<br>
    for example if the sorting order string is  <code>dfbcae</code>
    and the Input string is <code>abcdeeabc</code>
    the output should be  <code>dbbccaaee</code>.</p>
  
  <p>any ideas on how to do this , in an efficient way ?</p>