Samsung Electronics Interview Question

Write a card deck and do a shuffle.