Accenture Interview Question

they asked me to write a program to solve 2d equation