Question d’entretien chez Infosys

Asked me write a very simple algorithm based on microprocessor