Acrontum interview question

Very simple programming problem which had to be solved with the interviewer.