add a solution to Q1_Compute_Parity.java