Marvell Technology interview question

how to design a 7 entity johnson code?