Pocket Gems Interview Question

implement strstr and find most k frequent numbers in an array