Pregunta de entrevista de Halliburton

How would you write a program to do blank.