Amazon Interview Question

Fact and dimensions table difference