Pergunta de entrevista da empresa Halliburton

How would you write a program to do blank.