feat(problem-6): Added answer.