JS hamming exer done