Pergunta de entrevista da empresa Texas Instruments

Design a C-code for a number to move and array of it. Flowchart of can machine.