Pergunta de entrevista da empresa Pocket Gems

Just typical question: 1. strstr, get the top kth most frequency from an array 2. sort color, get next largest one from BT 3. strstr, Ternary expression to BT 4. sort color