SUNRISE FUTURES interview question

Background, C++, probability.