Function that returns true if string s can be made up of by other two string from the array after concatenating one after another
bool canbuildword ( string & s , bool isoriginalword , map < string , bool > & mp ) {