Honeywell interview question

How do you reverse a chip registry in C