Pergunta de entrevista da empresa Huawei Technologies

write a code for 8 coin puzzle.