Chances at UC Berkeley for CS

Hi, I’m asking this on behalf of a friend who is wondering if he could get into UCB with a 4.07 weighted gpa? The reason for the lower-than-average gpa is the lack of AP classes at his high school and the limits to how many AP classes that can be taken. In the past, on average around 4-5 people from his school have been accepted into UCB every year.