April Lunchtime Triangle Query

Why is this solution wrong for the problem Triangle Query