After encoding using hamming code , the pattern for 1010111 is (consider even parity)?

# Hamming code problem

The pattern given is 1010111.when we find the syndrome bits the 011 is obtained. So there is an error occurred at 3rd bit. By flipping it the correct pattern is 1110111.