ShakeDeal Interview Question

JavaScript core questions.