Fractal interview question

coding question was Wine quality test