Denny's Interview Question

A math question