RVI Group interview question

Simple math/statistics and one easy coding question