NIO Interview Question

Implement iPod shuffle play given an input playlist.