Fractal Interview Question

coding question was Wine quality test