how was yosemite formed

how was yosemite formed