im taking chinese in highschool and i want to go to uc Berkeley and can i finish with two years as highschool requirement or i need three years

Two is minimum.

You should always go for more than the minimum if you expect to succeed, in my opinion.