Introducing our solution in the following::