You mind posting your solution? Don’t forget to format your code if you’re posting your code. You may post an ideone link.