First Solve the Problem, Then write the code

First Solve the Problem, Then write the code