The black circles represent closed intervals, and the white circles represent open intervals.
So, according to function domain given, x = 2 is part of the domain, so must have a black circle. X = 5 is also closed interval, that is part of the domain, so also must have a black circle.
The only graph that has this characteristics is the fourth.