In Today's world retaining memory is a challenging part and every day to day routine work need memory to perform…