Pergunta de entrevista da empresa National Instruments

They asked how I would create a program simulating a deck of cards, how would I shuffle them ect.. They also asked a question about a binary tree search.