Before I use to solve this “Adding” but, now I am interested in knowing how to solve this kind of scenario…