UST Interview Question

How does git rebase work?