Complete RandomizedQueue
Complete program.