Pocket Gems Interview Question

KMP algorithm and sort color