OSIsoft interview question

Stack vs queues, palindrome, prime numbers coding