Variance calculation produces negative

Code reviewHard30 min

Your task

Review this Java single-pass variance.