Pergunta de entrevista da empresa Ericsson

If i was writing some code at work and came across a problem, how would I try to solve it?