Juniper Networks interview question

How to calculate parity bit