Compute expected days until no whole pills | Qube Interview Question