FloQast Interview Question

Translate requirements expressed as mathematical formula into pseudocode implementation.