Okta interview question

Coding question about data json handling and weighted average calculation