Medavie interview question

Claims amount calculation and such