Syncfusion interview question

Conversion, program to solve condition problems