Multiple Stack And Queue Cppreference Algorithm For Lottery