We have in total 20 observations.
We notice that the least value is 0 and the greater one is 7, this means that the range of the data is:
[tex]R=7-0=7[/tex]
Now, we know that we want four intervals this means that we have to divide the range in 4 equal parts to find the length of each interval:
[tex]\frac{7}{4}=1.75[/tex]
Now that we know the length we can construct our intervals:
[tex]\begin{gathered} 0-1.75 \\ 1.75-3.5 \\ 3.5-5.25 \\ 5.25-7 \end{gathered}[/tex]
now we need to count how many of the observations are in each interval.
[tex]\begin{gathered} 0-1.75\rightarrow3 \\ 1.75-3.5\rightarrow7 \\ 3.5-5.25\rightarrow7 \\ 5.25-7\rightarrow3 \end{gathered}[/tex]
Then the table is: