how do you exercise to get good legs, butt, and a flat stomach?

now i really want to do this
im thinking about switching to drinking only water for a month or two, with plenty of fruits and vegetables. But what exercises would help with my legs, butt, and stomach?

thank y’all!
<3
kailey