Syncfusion interview question

In Progamming test (Leet code style) 1st Q was Valid triangle