\documentclass{article}
\usepackage{enumerate, hyperref, multirow}
\usepackage[dvipsnames]{xcolor}
\usepackage[demo]{graphicx}
\begin{document}
%----------HEADING-----------------
% \hfill\includegraphics[height=3cm, width=2.5cm]{CPREWRITTEN.png}
\begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}
\textbf{{\LARGE Ankit Gupta}}
&\multirow{4}{*}{\includegraphics[height=3cm, width=2.5cm]{CPREWRITTEN.png}} \\
Email: \href{mailto:[email protected]}{\textcolor{RubineRed}{[email protected]}}
& \\
Mobile:~~~+91-861-889-1003
& \\
Linkedin: \href{https://www.linkedin.com/in/ankitg0812/}{\textcolor{blue!90!}{ https://www.linkedin.com/in/ankitg0812/}}
\end{tabular*}
\end{document}