```
public bool CanAttendMeetings(Interval[] intervals) {
intervals = intervals.OrderBy(x => x.start).ToArray();
for (int i = 1; i < intervals.Length; i++)
{
if (intervals[i].start < intervals[i-1].end) return false;
}
return true;
}
```