Hitachi Vantara interview question

Math algorithms and performance solutions