Ambra Health interview question

A couple math problems