PayPal interview question

1. Queue 2. On arrays