A positive charged rod X is brought near as uncharged metal sphere Y and is…