Amazon interview question

Fact and dimensions table difference