Princeton introCs condition excersises solution