Viridien Interview Question

A math problemm