Sponsored
Use these hints if you're stuck. Try solving on your own first.
keep the frequency of all characters from "croak" using a hashmap.
For each character in the given string, greedily match it to a possible "croak".
Solve with full IDE support and test cases