C Finance interview question

How did you achieve this and that task?