ShipBob interview question

Find whether given two strings are permutable or not