MappedIn interview question

Easy JavaScript task in codesandbox.io