Palo Alto Networks Interview Question

Q: shuffle an array, then implement optimization