Explanation:
I have solved it in two different ways, choose the one that suits you
3.6m questions
4.6m answers