Marvell Technology Interview Question

how to design a 7 entity johnson code?