Pocket Gems Interview Question

one is implement strStr() method. the second one is find the k most repeated number.