Syncfusion Interview Question

if condition problem in first round and difficult level problems in second round