Arm Interview Question

There was a coding problem to check if we are receiving inverted clock output.