• Above example is only for reference and not the perfect solution.