Syncfusion Interview Question

They asked me to write a simple ratio program