Reece interview question

write a program with good coverage