Viridien Interview Question

math related problems