StackBox Interview Question

Probabilities, P and C, Optimizations, Distance optimizations