CrimsonLogic Interview Question

Program debugging-obtaining maximum adjacency by reversing exactly one coin