Custom Sort String

Try to solve the Custom Sort String problem.

Statement

Given two strings, order and s, where all characters in order are unique and arranged in a custom order, return any permutation of s that satisfies the ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.