H&R Block interview question

triangle programming